package com.mindata.blockchain.core.event;

import com.mindata.blockchain.block.Instruction;
import org.springframework.context.ApplicationEvent;

public class RecoveryListEvent extends ApplicationEvent {

    private String instructionId;
    private Instruction instruction;
    private byte operation;

    public RecoveryListEvent(Object source, String instructionId, Instruction instruction, byte operation) {
        super(source);
        this.instructionId = instructionId;
        this.instruction = instruction;
        this.operation = operation;
    }

    public Instruction getInstruction() {
        return instruction;
    }

    public byte getOperation() {
        return operation;
    }

    public String getInstructionId() {
        return instructionId;
    }
}
